package com.cos.web.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/demo")
public class DemoController {
    @RequestMapping("/data")
    public String getData() {
        String data = "{\"msg\":\"no data\"," +
                " \"code\":0," +
                " \"data\":[{\"id\":1,\"username\":\"shine1\",\"sex\":\"男\",\"city\":\"保定\",\"score\":100}," +
                "{\"id\":2,\"username\":\"shine2\",\"sex\":\"女\",\"city\":\"石家庄\",\"score\":100}," +
                "{\"id\":3,\"username\":\"shine3\",\"sex\":\"男\",\"city\":\"邢台\",\"score\":100}]," +
                " \"count\":100}";
        return data;
    }


}
